<template>
    <div>
        <h1>snowpages</h1>
        <el-button @click="handleClick"> ElButton </el-button>
    </div>
</template>
 
<script setup lang="ts">
import { useStore } from '@/store/index';

const store = useStore();

const handleClick = () => {
  console.log(store.name);
  store.name = 'new name';

  console.log(store.name);
}
</script>
 
<style scoped>
</style>